import request from '@/config/axios'
/**
 * 分页查询事故登记
 */
export const pageQuery = (data) => {
  return request.post({ url: '/elder/accident/page-query', data })
}

/**
 * 新增事故登记
 */
export const create = (data) => {
  return request.post({ url: '/elder/accident/create', data })
}

/**
 * 更新事故登记
 */
export const update = (data) => {
  return request.put({ url: '/elder/accident/update', data })
}

/**
 * 获取单个事故登记
 */
export const get = (id) => {
  return request.get({ url: '/elder/accident/get?id=' + id })
}

/**
 * 删除事故登记
 */
export const deleted = (id) => {
  return request.delete({ url: '/elder/accident/deleted?id=' + id })
}
